package edu.ccut.saturn.studio.naviagtor.wizard.model;

import java.util.HashMap;
import java.util.Map;

import edu.ccut.saturn.studio.core.util.eclipse.Messages;

public class SaturnModelTypes {

	public static final String ACTION = "action"; //$NON-NLS-1$
	public static final String COMPONENT = "component"; //$NON-NLS-1$
	public static final String LOGIC = "logic"; //$NON-NLS-1$
	public static final String DATA = "data"; //$NON-NLS-1$
	public static final String WORKFLOW = "workflow"; //$NON-NLS-1$
	public static final String VALIDATE = "validate"; //$NON-NLS-1$
	public static final String WEB = "web"; //$NON-NLS-1$

	private static final String[] types = new String[] { ACTION, COMPONENT,
			LOGIC, DATA, WORKFLOW, VALIDATE, WEB };

	public static final Map<String, String> typeDefaultNameMap = new HashMap<String, String>();

	static {
		inialTypeDefaultNameMap();
	}

	public static String[] getTypes() {
		return types;
	}

	public static String getTypeDefaultFloderName(String type) {
		return typeDefaultNameMap.get(type);
	}

	private static void inialTypeDefaultNameMap() {
		typeDefaultNameMap.put(ACTION, Messages
				.getString("SaturnModelTypes.actionFloder")); //$NON-NLS-1$ //$NON-NLS-2$
		typeDefaultNameMap.put(COMPONENT, Messages
				.getString("SaturnModelTypes.compontentFloder")); //$NON-NLS-1$ //$NON-NLS-2$
		typeDefaultNameMap.put(LOGIC, Messages
				.getString("SaturnModelTypes.logicFloder")); //$NON-NLS-1$ //$NON-NLS-2$
		typeDefaultNameMap.put(DATA, Messages
				.getString("SaturnModelTypes.dataFloder")); //$NON-NLS-1$ //$NON-NLS-2$
		typeDefaultNameMap.put(WORKFLOW, Messages
				.getString("SaturnModelTypes.workflowFloder")); //$NON-NLS-1$ //$NON-NLS-2$
		typeDefaultNameMap.put(VALIDATE, Messages
				.getString("SaturnModelTypes.validateFloder")); //$NON-NLS-1$ //$NON-NLS-2$
		typeDefaultNameMap.put(WEB, Messages
				.getString("SaturnModelTypes.webFloder")); //$NON-NLS-1$ //$NON-NLS-2$
		
	}
}
